package ae.pcfc.cldos.online.common.delegate.provider;

import ae.pcfc.cldos.online.common.delegate.BaseDelegate;
import ae.pcfc.cldos.online.common.delegate.EncryptionDelegate;
import ae.pcfc.cldos.online.common.facade.EncryptionFacade;

/**
 * 
 * @author arosa
 *
 */
public class EncryptionDelegateImpl extends BaseDelegate implements EncryptionDelegate {

	public String encryptAndEncode(String in){
		return getServiceLocator().getFacadeService(EncryptionFacade.class).encryptAndEncode(in);
	}
	
	public String decodeAndDecrypt(String in){
		return getServiceLocator().getFacadeService(EncryptionFacade.class).decodeAndDecrypt(in);
	}
	
	public String base64decode(String in){
		return getServiceLocator().getFacadeService(EncryptionFacade.class).base64decode(in);
	}
	
	public byte[] base64decodeToByteArray(String in){
		return getServiceLocator().getFacadeService(EncryptionFacade.class).base64decodeToByteArray(in);
	}
	
	public String base64encodeToString(byte[] in){
		return getServiceLocator().getFacadeService(EncryptionFacade.class).base64encodeToString(in);
	}
}
